package com.curry.apiprovider.mq;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MqSender {
    @Autowired
    private RabbitTemplate rabbitTemplate;


    public void sendStrMsg(String msg) {
        rabbitTemplate.convertAndSend("job", msg);
    }

    public void sendObj(Object object) {
        rabbitTemplate.convertAndSend("job", object);
    }
}
